]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Update for Gio/GioUnix split
authorSebastian Keller <skeller@gnome.org>
Sat, 27 Apr 2024 13:14:16 +0000 (15:14 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 29 Apr 2024 14:48:07 +0000 (16:48 +0200)
GLib 2.79.2 split out the platform specific Gio APIs into a separate
GIRs, while still keeping a copy in the Gio GIR. gjs then added warnings
about the APIs being moved.

This bumps the Gio(Unix) version requirement to 2.79.2 and switches to
using the new GioUnix GIR.

See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3892
See: https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/918
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7539
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3288>

.gitlab-ci.yml
js/misc/dependencies.js
js/misc/loginManager.js
js/ui/components/networkAgent.js
meson.build

index ffd6081fac44a752b4dcd958268acb8e31d3845d..d89ebb101c3f9be4decafc5e6bfb9d55b4f5d1bf 100644 (file)
@@ -27,7 +27,7 @@ default:
       - 'api_failure'
 
 variables:
-  MUTTER_CI_IMAGE: registry.gitlab.gnome.org/gnome/mutter/fedora/40:x86_64-2024-02-23.0
+  MUTTER_CI_IMAGE: registry.gitlab.gnome.org/gnome/mutter/fedora/40:x86_64-2024-04-29.0
   FDO_UPSTREAM_REPO: GNOME/gnome-shell
   BUNDLE: "extensions-git.flatpak"
   LINT_LOG: "eslint-report.xml"
index d4837af04a6d2495ca3ffeac0379cd1592b6b842..f8f98d4871d7dc74658676841c1810be9e27bbce 100644 (file)
@@ -12,6 +12,7 @@ import 'gi://Gdk?version=4.0';
 import 'gi://Gdm?version=1.0';
 import 'gi://Geoclue?version=2.0';
 import 'gi://Gio?version=2.0';
+import 'gi://GioUnix?version=2.0';
 import 'gi://GDesktopEnums?version=3.0';
 import 'gi://GdkPixbuf?version=2.0';
 import 'gi://GnomeBG?version=4.0';
index fe3719244ea361d5883de0c70a4f7fc21d4a1cd9..1515fc9e34d183a3531a22025c2cd29b0160200b 100644 (file)
@@ -2,6 +2,7 @@
 
 import GLib from 'gi://GLib';
 import Gio from 'gi://Gio';
+import GioUnix from 'gi://GioUnix';
 import * as Signals from './signals.js';
 
 import {loadInterfaceXML} from './fileUtils.js';
@@ -206,7 +207,7 @@ class LoginManagerSystemd extends Signals.EventEmitter {
             await this._proxy.call_with_unix_fd_list('Inhibit',
                 inVariant, 0, -1, null, cancellable);
         const [fd] = fdList.steal_fds();
-        return new Gio.UnixInputStream({fd});
+        return new GioUnix.InputStream({fd});
     }
 
     _prepareForSleep(proxy, sender, [aboutToSuspend]) {
index cb4a7c9bd81adf34d1e6880c73ac1df5763f5aee..f6d5e1a3f1f3c29e7c7a534f751e3fa048b95c6c 100644 (file)
@@ -2,6 +2,7 @@
 
 import Clutter from 'gi://Clutter';
 import Gio from 'gi://Gio';
+import GioUnix from 'gi://GioUnix';
 import GLib from 'gi://GLib';
 import GObject from 'gi://GObject';
 import NM from 'gi://NM';
@@ -469,8 +470,8 @@ class VPNRequestHandler extends Signals.EventEmitter {
                     });
 
             this._childPid = pid;
-            this._stdin = new Gio.UnixOutputStream({fd: stdin, close_fd: true});
-            this._stdout = new Gio.UnixInputStream({fd: stdout, close_fd: true});
+            this._stdin = new GioUnix.OutputStream({fd: stdin, close_fd: true});
+            this._stdout = new GioUnix.InputStream({fd: stdout, close_fd: true});
             GLib.close(stderr);
             this._dataStdout = new Gio.DataInputStream({base_stream: this._stdout});
 
index e71d655596e3ce389c73988f0a996b28856018f8..3c28fbfc3d9b8cb1e5f3478a08b6821c4fe0e727 100644 (file)
@@ -22,7 +22,7 @@ libmutter_test_pc = 'libmutter-test-' + mutter_api_version
 ecal_req = '>= 3.33.1'
 eds_req = '>= 3.33.1'
 gcr_req = '>= 3.90.0'
-gio_req = '>= 2.56.0'
+gio_req = '>= 2.79.2'
 gi_req = '>= 1.49.1'
 gjs_req = '>= 1.73.1'
 gtk_req = '>= 4.0'